import request from '@/utils/request'

// 查询排班管理列表
export function listTeam(query) {
  return request({
    url: '/service/sort-team/list',
    method: 'get',
    params: query
  })
}

// 查询排班管理详细
export function getTeam(sortTeamId) {
  return request({
    url: '/service/sort-team/' + sortTeamId,
    method: 'get'
  })
}

// 新增排班管理
export function addTeam(data) {
  return request({
    url: '/service/sort-team',
    method: 'post',
    data: data
  })
}

// 修改排班管理
export function updateTeam(data) {
  return request({
    url: '/service/sort-team',
    method: 'put',
    data: data
  })
}

// 删除排班管理
export function delTeam(sortTeamId) {
  return request({
    url: '/service/sort-team/' + sortTeamId,
    method: 'delete'
  })
}

// 排班日历
export function teamSchedulingCalendar(query) {
  return request({
    url: '/service/sort-team/team-scheduling-calendar',
    method: 'get',
    params: query
  })
}
